package com.celebracion.util;

import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.util.Log;

import com.celebracion.NombresActivity;
import com.celebracion.VideoPreviewActivity;

public class ChangeActivity extends AsyncTask<Void, Void, Void>{
	
	Activity act;
	
	public ChangeActivity(Activity act){
		this.act=act;
	}
	@Override
	protected Void doInBackground(Void... params) {
		try {
			Thread.sleep(30000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
	
	
	@Override
	protected void onPostExecute(Void result) {
		// TODO Auto-generated m reethod stub
		super.onPostExecute(result);
		Log.e("Aqui toy", "Aqui toy");
		Intent intent=new Intent(act,NombresActivity.class);
	
        act.startActivityForResult(intent, 3333);
	}
	
	

	

}
